package HOANGTHANHCONG_jdbc_DEMO_LB;

import java.sql.Connection;

import com.microsoft.sqlserver.jdbc.SQLServerDataSource;

public class Connection_demo_lib {
	public static void main(String[] args) {
		//Khai bao o ngoai
		// Connection m_connection;
		//1.Khai bao connection
	Connection objconnection;
	//2.Khai bao va khoi tao doi tuong SQL sever data source
	SQLServerDataSource objDataSource = new SQLServerDataSource();
	//3.thiet lao cau hinh cho SQLServerDataSource
		objDataSource.setServerName("192.168.1.3");
		//objDataSource.setServerName("192.168.0.100");
		
		
	}
}
